this.icon.animateZoomOut();
}
+ animateLaunchAtPos(x, y) {
+ this.icon.animateZoomOutAtPos(x, y);
+ }
+
scaleIn() {
this.actor.scale_x = 0;
this.actor.scale_y = 0;
zoomOutActor(this.child);
}
+ animateZoomOutAtPos(x, y) {
+ zoomOutActorAtPos(this.child, x, y);
+ }
+
update() {
this._createIconTexture(this.iconSize);
}
}
function zoomOutActor(actor) {
+ let [x, y] = actor.get_transformed_position();
+ zoomOutActorAtPos(actor, x, y);
+}
+
+function zoomOutActorAtPos(actor, x, y) {
let actorClone = new Clutter.Clone({ source: actor,
reactive: false });
let [width, height] = actor.get_transformed_size();
- let [x, y] = actor.get_transformed_position();
+
actorClone.set_size(width, height);
actorClone.set_position(x, y);
actorClone.opacity = 255;